import request from "@/utils/request.js";

// 事项办理----我发起的
export const getICreatList = (data) => {
  return request({
    url: "/app/workflow/audit/pages/TODO",
    method: "POST",
    data,
  });
};
// 事项办理----我审批的
export const getIapproveList = (data) => {
  return request({
    url: "/app/workflow/task_info/pages/TODO",
    method: "POST",
    data,
  });
};
// 事项办理---通知公告
export const getNoticeList = (data) => {
  return request({
    url: "/app/workflow/task_info/pages/TODO",
    method: "POST",
    data,
  });
};
// 事项办理---查询--基本信息
export const getauditInfo = (data) => {
  return request({
    url: "/app/workflow/audit/info/TODO",
    method: "GET",
    data,
  });
};
// 事项办理---新建保存---草稿
export const getSaveDrafat = (data) => {
  return request({
    url: "/app/workflow/audit/save/draft/TODO",
    method: "POST",
    data,
  });
};
// 事项办理---新建提交
export const handelauditSubmit = (data) => {
  return request({
    url: "/app/workflow/audit/save/complete/TODO",
    method: "POST",
    data,
  });
};
// 事项办理---我审批的--基本信息---保存
export const iapproveSave = (data) => {
  return request({
    url: "/app/workflow/task_info/save/draft/TODO",
    method: "POST",
    data,
  });
};
// 事项办理---我审批的--基本信息---提交
export const iapproveSubmit = (data) => {
  return request({
    url: "/app/workflow/task_info/save/complete/TODO",
    method: "POST",
    data,
  });
};
// 事项办理 --我审批的---基本信息查询
export const gettaskInfo = (data) => {
  return request({
    url: "/app/workflow/task_info/info/TODO",
    method: "GET",
    data,
  });
};
// 事项办理 --办理记录
export const gethandlingRecord = (busid) => {
  return request({
    url: "/app/workflow/audit_item/list/TODO/" + busid,
    method: "POST",
  });
};
// 事项办理 --通知公告--基本信息查询
export const getNoticeInfo = (data) => {
  return request({
    url: "/app/workflow/notice_info/info/TODO",
    method: "GET",
    data,
  });
};
// 事项办理 --通知公告--基本信息查询
export const setReadStatus = (data) => {
  return request({
    url: "/app/workflow/notice_info/update/read_status",
    method: "POST",
    data,
  });
};

// 事项办理 -- 我发起的 --撤回
export const creatReback = (data) => {
  return request({
    url: "/app/workflow/audit/reback",
    method: "POST",
    data,
  });
};
// 修改阅读状态
export const  setReadstauts = (data) => {
  return request({
    url: "/app/workflow/notice_info/update/read_status",
    method: "POST",
    data,
  });
};
// 事项办理附件列表
export const getfilelist = (busid) => {
  return request({
    url: "/app/workflow/business_attach/list/TODO/"+busid,
    method: "POST"
  });
};